<template>
  <div>
    <p>{{ child1 }}</p>
    <p>attrs: {{ $attrs }}</p>
    <p>$listeners: {{ $listeners }}</p>
    <child2 v-bind="$attrs" v-on="$listeners" />
    <div @click="$emit('onChild1')">Test</div>
  </div>
</template>

<script>
import child2 from './child2';
export default {
  name: 'child1',
  props: {
    child1: {
      type: String,
      default: ''
    }
  },
  components: {
    child2
  },
  inheritAttrs: false,
  data() {
    return {};
  }
};
</script>

<style lang="scss" scoped>

</style>
